<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <title>无限极创新资讯分享后台</title>
    <link href="images/style.css" rel="stylesheet" type="text/css" />
    <script src="http://cdn.bootcss.com/jquery/2.1.3/jquery.min.js"></script>
    <script src="../js/layer/layer.js"></script>
</head>
    
<body>     
    <div id="addRss-wrap">
        <div class="address">
            RSS地址：<input class="rssadd" type="text">
            <img class="truepng" src="images/true.png" alt="">
        </div>
        <div class="name">
            名称：<input class="rssname" type="text">
            <img class="truepng" src="images/true.png" alt="">
        </div>
        <div class="sure">确认</div>
    </div>
</body>

<script>
	$(function(){

        //输入内容
        $("#addRss-wrap  input").on("input",function(){
            if(this.value!=''){
                $(this).parent().find(".truepng").css({visibility:"visible"});
            }
            else $(this).parent().find(".truepng").css({visibility:"hidden"});
        });


        //确认
        $(".sure").on("click",function(){

            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
            parent.layer.close(index); //再执行关闭  
        })

     
    })
</script>

</html>


